#ifndef KEYEDENTRY_H_
#define KEYEDENTRY_H_
#include <stdio.h>
template <class T>
class KeyedEntry
{
	T * value;
	char * key;
	
	public:
	KeyedEntry(char * key, T * value);
	~KeyedEntry();
	T * GetValue();
	char * GetKey();
};
template<class T>
KeyedEntry<T>::KeyedEntry(char * key, T * value)
{
	this->key = key;
	this->value = value;
}
template<class T>
KeyedEntry<T>::~KeyedEntry()
{
	if(key)
	{
		delete(key);
		key = NULL;
	}
	if(value)
	{
		delete(value);
		value = NULL;
	}
}
template<class T>
T * KeyedEntry<T>::GetValue()
{
	return value;
}
template<class T>
char * KeyedEntry<T>::GetKey()
{
	return key;
}
#endif /*KEYEDENTRY_H_*/
